fix folder selection bug