fixing curve bug (create points)