Figured it out. The inner repeating group needs to be inside a group which itself is in the outer repeating group