fix to route path generation