fixed yet another inventory bug