fix 0002 patch for mac