fix failed transaction when start transaction for the first time