fix fetch_object bug