Fix synchronization problem of query result.