Fix: only calculate the last core.
Fix: only calculate the last core.