fix updateMastery for CPU