bug fix edit inventary