fix folder collapse/expand script

fixed: was unable to open multiple folders