fixed a bug in friedman.posthoc