Update diagram_free