fix exception when get webpage