accelerometer fix