Fixed var name clash in updateTraffic