better ghost-focus prevention