hidePopup fix