fixed refresh error