Fixd the inventory bug