Fix case when url is not defined