small modification to odometry correction