fixed motor.js