Fix Macos judge