Make this at least work sanely on iOS 7