fix refreshing attempts