accelerometer related fix