Fixing problems with listFolders.