fix only when document.activeElement has focus