fix bug: when timeout happend the response is null