Fix rotation bug

App now rotates correctly.