fixed Random curve bug