Fix a refresh issue