Fixed bug in the reset of the odometry