Fix refreshing problem.