Fix a harmless bug in the `diagrams` tool that results in some duplicated data in the generated `.dot` files