Added BETA fix for the AGM unc error