fix bug in hof and test hof feature