fix recursive call to document.execCommand