thread bug is fixed.