fixed motors state tracking bug