cannot clean if we want to create a diagram from the session saved on mongodb