ocean-to-csv: fix bug for non query mode, affected by query mode code.