Fixed issue with the list of visited cities