fix refresh error