fix bugs in lfu.