Fixed issue with Bezier lines, will no longer crash when the path is not perfectly straight.