ref cannot be used with _get_collection_from_object
typo
Fix insert followed by remove in the same transaction. The document was not removed from mongo.