Fix incompatible behavior in route.