fixed urlopen bug