Fixed warnings for iOS 7/8