fix the problem of quit or abort in transaction