Fix missing var in Diagrams