Fix generation of IA_PD and IA_NA attributes