Csv output plugin prints wrong stuff

Seems like the same problem as in the thread below.