Fix to generate patches for all outers and inners when one of them is touched.