fixing the refresh