fix ref to window.frameElement