Fix StyleCop violations