Patch for attachment ordering