fixing thread bug