Accelerometer fix