fixed error in displaying number of caes in to_visit list