fixed the refresh