Try moving the sketch line in plan view to be at least a small distance inside the boundary of the stairs. Most likely the sketch line is outside of the stairs.
By the way, just curious, why do you need the top of the railing to be flat, and does that meet code?
Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin