fix handling infinite nesting of embeddables