Updated valid pixel criterion in AER