motor bug fixed
Motor routines fixed