fix number format exception in calculating MAF