Fixed bug with root path selection