Correcting haddock functions