Accelerometer bug fixed