Fixing static analyzer warnings.