Fixed bug: setting active item from inventory duplication bug