fix patch target file