Changing number of repeating (decrease) set of question in loop

i have group of questions within the loop to be repeated based on number of family members, anyway if at any stage had to decrease the number of family members, (eg. from 4 to 3), the loop will be repeated based on the first entry and wont adjust according to modification of number

Welcome back to the community, @sojoodmlk! What have you tried this on (KoBoCollect android app or Enketo?

KoBoCollect android app

Have you tried this out with Enketo to see how it behaves?