fix bug close popup windows