fix #807: do not scroll modals to top