fixed bug when there is no URL given