As you edit the elevation profile, keep in mind that after you finish the sketch, the wall top or bottom attaches only where horizontal lines are coincident with the reference planes in the sketch.
The sample sketched profile. Note the top sketch lines are coincident with reference planes.
The finished wall attached to roof. Non-coincidental horizontal lines from the sketch did not attach.