Fix StyleCop errors