Fixed inventory items being created without item references.