some fix for empty url
Merge pull request #5 from narlie/patch-2

some fix for empty url