fix close pop-up