Fixes focus and scroll issues.