Modify logic related with setting refresh

No match.