Fixbug: thread safey.