Routes path generation fix