patch for ad check