better fix for ngif issue where attributes continue to get populated by other attributes