some fix for empty url