Fixing UML diagrams