Duplicate attributes in insert fixed