Fixes UI layout on iOS 7.