fix bug cause by API object's expire