fix bug on refresh complete