Fix a crash on IOS 7.X ipads