fix haddock diagrams