Fix a bug in route.