Fixed issues with RavenDb storage