fix warning for iOS 6 and higher