Fix self-intersection resolution on a single bezier curve