Fix mac check