fixed refresh crash