diff --git a/Qt/Components/pqCutPanel.cxx b/Qt/Components/pqCutPanel.cxx
index 42c3cc1..a46a6a7 100644
--- a/Qt/Components/pqCutPanel.cxx
+++ b/Qt/Components/pqCutPanel.cxx
@@ -70,7 +70,15 @@ pqCutPanel::pqCutPanel(pqProxy* object_proxy, QWidget* p) :
   // delete the widgets added by pqAutoGeneratedObjectPanel for the
   // ContourValues since they are inappropriate.
   delete this->findChild<QWidget*>("_labelForContourValues");
-  delete this->findChild<QWidget*>("ContourValues_0");
+  for(int n=0;;++n)
+  {
+      QWidget* tmp = this->findChild<QWidget*>(QString("ContourValues_%1").arg(n));
+      if(tmp == 0)
+      {
+          break;
+      }
+      delete tmp;
+  }
 
   panel_layout->addWidget(group2, rowCount, 0, 1, panel_layout->columnCount());
   //panel_layout->setRowStretch(panel_layout->rowCount(), 1);
