fixing scrolling performance