fix refreshInventory a little