fix domdocument references