Fix line joints when doing a PI angle

fixes #1037