thread
fix bug