fix: initialize sem_cores correctly