fixed motor errors