Fixes initialization bug in IMU.