Delete unecessary duplicates