fix Thread Stats bug