[Fix] Fix crash of cross-thread use.