Fix scrolling error with tabs