Stylecop fix

Fix StyleCop warnings
This is most likely a false positive. Revert it please.