fix bug in page up/page down to browse history