Fixes to the bugs which were introduced in a previous task

 - accounts balancing works
 - a sequencing of record identifiers works