Fix a bug on route dictionary parsing due to API changes.