fix for iOS7.1 platform