fix popups shown after scrolling