fix a refresh issue