Fixed the imu data to be recorded