Fixed registration of IDocumentSession