Choose minimal available number for transactions

It is only cosmetic fix. Get new numbers for transaction in increasing order.
Merge pull request #390 from mhamrle/nums

Choose minimal available number for transactions