fix run_mac