Fixes the damn csvwriter