fixed haddock error