fix url assignment