fix thread issure in globalpot