Fixed bug on reusing a RID of a deleted record in transaction