crash on empty url fixed