fix the rotate option

 make the rotating angle follow the curve