fix stats function. Filter out bad polyAs