fix error in engine.moveTo