fix thread safty problem