InventoryCommon: fixed syntax error in tob check