fix idle transaction created by the migration process