fix issue with threads count