Inventory Widget : Getting error message when selecting an item