fixed small error issue in the generateUrl() of the Routes class