fix deprecated vars["url"] call