fix diagram generation