bug correction for urllib