fix for inaccessible document.body