bugfix: replace the worst one only if the routing table meets it's capcacity