fixed resize issue for scrolling