fix url generator