fixed bug with writing .edi files from .avg files in zonge