fix for orientation sensor