Fixmoveto

- fix moveto
- smartGeneration call only once