If you have uninitialized shift registers, they won't get cleared by resetting to defaults. You need to e.g. initialize the shift register as in the attached example.
It is not clear at all why you need a shift register, because you never e.g. append data to it or reuse it in another case. You thus can also get rid of the shift register and place the table inside the "true" case.
(Also notice that I got rid if these extra local variables, they are not needed and only complicate the diagram. Please also put a small delay in the false case. It is not necessary to check the "add file" button millions of times a second and using up 100% of the CPU doing so.)
It would be even better to use an event structure (see example 2).
Let me know if
you have questions.