accelerometer bugs fixed