devicemotion fix