fix refresh issue