fixing DOM
Merge pull request #1071 from darkwing/dom-it

Fixing DOM