bug fixed for scrollbar