fix bug cause by query id error