fixed url generating