fix for iOS6