Fixed code analysis issues.