fixing numCore bug