Fixing bug in creating ItemLists