fixed bug with processing selected root directory