Fixed bugs, including one that always enabled accel and magnet