Fixed code analysis errors.