fix for document.domain