Fixed bug on RemoveAllItemsByDefindex(). It wasn't removing any items.