popup close fix