Fixed bug where directories were rendering twice in file-browser.