fix scrolling of frames