fix some resharper warnings