fix for folders not containing any files but containing other folders