fixed bug with bad inventory ids