Remove duplicates and not-founds