fixes to the LRU table implementation for several corner cases