Fix bugs in motor movement command (where multiple ones could be queued up).