fixes refreshing issue