fix csv appending