Fixed issue with document loading
Wip on DOM Adapter