fix bug in lru cache