correct some resharper warnings