Fixed allocateid's and transaction retry