fix 1230 patch for mac