Fix A and P reduction.