fix for complex nesting. dropped convertPatch.