Remove duplicate instances