fixed flickering due to scrollbar