Fix file-rendering to avoid folder-types