Unexpected behavious with groups and nested repeats

if in any case you want to call an it into REPEAT group, and the item is another repeat group just use INDEXED REPEAT.

later if i had enough time i will check you form though