fix accelerometer