popup closed fix