Fix mac upgrade