fixed motor bugs