Fixing refreshing issue.