Fixed bug related to identification of items as folders