minor fixes to the dom namespace calls