Fix: only calculate the last core.