fixes in accelerometer (tilt detection)