fix layout for haddock