Revert 524bcab, remove flush after writing csv