Fixed the refreshing issue.