remove cruft from recursive patch