Ok, now it works.. I missed a check about the presence of subfolders.. so, when i was in a leaf, the script tried to show the subfolders (but no subfolders were present!) and the layout went ko.. Grr ;) Thanks anyway Paolo