Fixes route building.