Fixed undefined Folders Issue