Cannot clean if we want to create a diagram from the session saved in mongodb.