Spectrum ddm_save.pl fails with errors