Fixes problems with iPad Rotation