Fix route building.