fixed bug of continious refreshing