bugfix: page up / down computed # of rows incorrectly