Fix:potential crash in multithrading mode
Fix:potential crash in multithrading mode