Fixed an error in the parameters for make-diversity-fn.