bugfixes to LRUcache