fixing diagrams