fixing the scrollbar on index