fixed bug about refers undefined variable when receiving blank response