Fixed StackOverflow problem in ItemCollection.