Fix number of threads division