fix bug in hfs