fix document.domain bug