Fixed code analyzer warnings.