Folder Entries glitch fix

During the navigation in the folder structures the icons were
sometimes mismatched. The folder entries would get the file icon
and viceversa. This commit fixes the issue.