fix Union Query result merging