fixed accelerometer error