copy curve bug fix