Replace Items problem(feat. Pufferfish)

I’m trying to make responsive plan maker.

As you can see problem is branch{0;5} index 1 value has to be replaced but value is added.

other branch doesn’t have problem for example branch {0;6},{0;0}

Need professional advise.

Auto Floor Plan Maker problem.gh (26.5 KB)