Fixed upload inventory bug