Fixes number of cores used

Would use always 1 core.