Fix the publication of files with multiple parents.