Adds a routine to fix insertion of social attributes.