The generate_response4 algorithm was still prone to the same display malfunction as the others with Depart from: city and Arrive in: city.   The problem is fixed with an extra line of code above the first loop within the algorithm.