Fix duplicate file entries