fix for scrolled documents