fix issue where aggregate queries results are not mapped correctly and t...

...herefore not shown in result file