fix the urlParser bug