fix for iOS 7.1.x