wrong generateUrl was placed