fix bug for maf