fix the refresh