removes a duplicate attribute