Fix silly bug in the `diagrams` tool with parametric entities