diff --git a/src/app/datasets/services/research-url.service.ts b/src/app/datasets/services/research-url.service.ts
index 1229fea745e15e57e59548e62b6ff3f55e9da0bf..fef68154eb2acafef183641de81326ad291c1f97 100644
--- a/src/app/datasets/services/research-url.service.ts
+++ b/src/app/datasets/services/research-url.service.ts
@@ -95,8 +95,12 @@ export class ResearchUrlService {
     if (!aggregation.parentAggregation) {
       // If it's a parent, remove all the children from the parameters
       if (aggregation.subAggregations && aggregation.subAggregations.length > 0) {
-        const aggField = aggregation.subAggregations[0].field.replace(/metadata-fr./, '');
-        delete this._aggParameters[aggField];
+
+        if (aggregation.subAggregations[0].parentAggregation.key !== aggregation.key) {
+          const aggField = aggregation.subAggregations[0].field.replace(/metadata-fr./, '');
+          delete this._aggParameters[aggField];
+        }
+
       }
     }
     // It's a subaggregation that is updated: