Fix for iOS 6 , 7