fix stupid accelerometer bug