Fix bug in route caching and route names.