fix preview scrolling