AA_phasecoher bug fix