fix appending parameters to url