tried to fix refreshing some more