Fix bug with handling no URL given