Fix smart position and scroll.