Fixed code analysis error