fix for RavenDB-2277