fixed Xcode Analyzer warning