bug fix in ldaecgs file io