Fixed for iOS 6 and 7 - very hacky