fixed accelerometer issue