fixed getDocumentDOM double execution.