Fixes to MetamorphView's DOMManager replace