Fix problem with resetting robot direction.