Fix connected inventories having wrong row amount