fix bug with not defined url variable