fix: initialize sem_cores correctly
Merge pull request #441 from steenpass/sem_cores

fix: initialize sem_cores correctly