Fixing an output formatting bug where soem results where dumped twice