Fix addition of attributes