fixed the double scrollbar bug when a modal is shown

There is a small error in the event names that prevents the bug from being fixed.