Fixed some analyzer warnings.