Fixes a check for iOS7