Fixed a bug that lurked in the process of refuse a bad URL