Scroll to selection works reliably after reloading