fixes for RavenDB-1745