fixed flush thread bug