Fixed some bezier curve bug