Fix the case of an invalid URL

TODO++