Remove possible duplicates