fixed bugs in lru and mru