fix for issue RavenDB-2314