training csv remove tmp file fix