Fix scrolling behavior and TOC offset from top