Fixes issue where given two objects A and B. If A is embedded into B suc...

...cess. If B is then embedded into A a too much recursion error occurs.