fix url variable assignment