fixing scrolling/drag bug