Patch for distinct