fixed breaking bezier curve drawing