Accelerometer does not work