fix csv for sp