fix a bug of scrolltop when pressing 'k'