Fix diagrams.