Fixed warnings for iOS7