fix loading of folders