Fix for iOS6