fix bad url generator