fix bug when delegating within repetitive and changing structures

certainly a hard bug to come across and a hard one to replicate
even once you spot it because its so subtle but definitely needed
to be fixed.