fix filename bug for aa output files