Fix crash on iOS 7