Fixed missing condition for sieving in APLOD