thread count bug fix