fixed adding of a new file using a patch