Fixed code analysis warning