DOM.State() IE bug fix

fixed compatibility with IE