Fix CodeAnalysis warnings.