Removed infinite loop in evict() function