fix transaction begin warning problem