fix dom stubs