Fix merging inv query results
3 files changed