removed thread bug