Why do I get a message that my thread count has to be reset?