Fix code analysis issues.