popup close correction