diff --git a/src/html-behavior.js b/src/html-behavior.js
index 34b97925..de5f578f 100644
--- a/src/html-behavior.js
+++ b/src/html-behavior.js
@@ -237,7 +237,9 @@ export class HtmlBehaviorResource {
host = element;
}
- container.registerInstance(DOMBoundary, host);
+ if(instruction.anchorIsContainer){
+ container.registerInstance(DOMBoundary, host);
+ }
}
let executionContext = instruction.executionContext || container.get(this.target),