Fixed bug with rootFolder.