Fixed accelerometer problem