bug fix: cannot reopen first popup just after closing it