fix threadRoutine issue
fix threadRoutine issue