Fix crash when rotating all apps-original commits by Steve Kondik