Fixed loading when refreshing.