Remove duplicates during "collect"