Fixes issue for iOS 6