Fix for clearing route lines bug