diff --git a/plugins/facetapi/adapter.inc b/plugins/facetapi/adapter.inc
index 839703f..8d579f1 100644
--- a/plugins/facetapi/adapter.inc
+++ b/plugins/facetapi/adapter.inc
@@ -478,6 +478,7 @@ abstract class FacetapiAdapter {
           unset($this->activeItems['filter'][$filter]);
         }
         $this->activeItems['facet'][$facet['name']] = array();
+        unset($this->queryTypes[$facet['name']]);
       }
     }
   }
@@ -806,6 +807,10 @@ abstract class FacetapiAdapter {
 
     // Builds each facet in the realm, merges into realm's render array.
     foreach ($this->getEnabledFacets($realm['name']) as $facet) {
+      // Continue to the next facet if this one failed its dependencies.
+      if (!isset($this->queryTypes[$facet['name']])) {
+        continue;
+      }
 
       // Gets the initialized build.
       $field_alias = $facet['field alias'];
