fix thread print issue and fix spell fail.