fixed possible warning on iOS 7