Correction to PhEDEx script