fix for accelerometer