Fix mac script