workaround for iOS 7