invoice: fix counter increment