Fixed some sync issues for 10 thread run
cleanup