Fix BUG in number of cores