Fixed inventory to update properly