fix dupe keys