jit.cellblock and files management

FP's icon

hi,

i'm trying to do a "management files" patche from a Leafcutter John's patche.
i have only one little problem, when i remove one file (sample) and select the last one in the jit.cellblock, all files are deleted. it works perfectly (i mean only this file is deleted) when i select another one except the last one.

to reproduce it:
1. drop folder of sounds
2. select "info"
3. select "remove"
4. in info window, select the last one

... ->ALL files will be deleted

what's happen ? how to avoid it ?

if you do it again and select other file except the last one in the jit.cellblock, it works...

thx.

here's the patche:

Max Patch
Copy patch and select New From Clipboard in Max.

FP's icon

no idea ?
bouhouhou...
;-)