Fixed issue where folders weren't loaded before the file.