fix patches to files