If you connect the walls with the reference (bold) lines as the drawing below it should work correctly. Make sure the vertical wall is set to the centerline method of construction.
Turn on the reference lines in the on screen view options to help you.