Fixed analyzer warnings.