Fix for iOS7