Fixing a refresh issue