fix page up/down could not move to start/end of document