prevent " Duplicate attribute." errors