fix a bug of parseURL, if paraseURL fails,a exception is thrown instead of clearing operation