fix threadcount