fix thread count bug