Fix bug in port eviction code