OPINION
Defendant Jayne I. Patience appeals from her conviction and sentence for three third degree felonies based on her plea of guilty to three counts of attempted forgery, in violation of Utah Code Ann. § 76-6-501 (1995 & Supp.1996). We affirm in part and reverse and remand in part.
BACKGROUND
In March 1995, defendant was charged with three counts of forgery, a second degree felony, in violation of Utah Code Ann. § 76-6-501 (1995). The information charging defendant alleged that defendant had on three separate occasions altered three of her employer’s checks with a face amount of $100 or more. At the time the information was filed, forgery was a second degree felony if the altered check had a face amount of $100 or more. See id. However, effective May 1, 1995, the statute under which defendant was charged was amended to make all forgeries third degree felonies, regardless of the face amount of the altered check. See id. § 76-6-501(3) (Supp.1996). 1
In October 1995, the parties negotiated a plea agreement under which defendant agreed to plead guilty to three counts of attempted forgery, third degree felonies. At the time of the plea agreement, both parties were apparently unaware of the amendments reducing forgery to a third degree felony, see id., and attempted forgery to a class A misdemeanor, see id. § 76-4-102 (1995).
Defendant’s sentencing hearing was held in December 1995. At the time of sentencing, the parties, as well as the trial court, were still unaware of the legislative changes making attempted forgery a class A misdemeanor. At the hearing defendant acknowledged, through counsel, that she had a previous class A misdemeanor conviction for forgery or attempted forgery in 1987. Defendant also informed the trial court that she had stipulated to a nondischargeable judgment for $485,000 as restitution to her employer for the forgeries at issue in this ease.
At the hearing, the trial court also allowed Virginius Dabney, an attorney who had previously employed defendant as a legal secretary, to speak, although he was not sworn. Mr. Dabney stated that during defendant’s employment with him, she had asked him for help because she was unable to make restitution on her 1987 class A misdemeanor forgery conviction and she was afraid the judge would put her in jail. Mr. Dabney stated that he interceded for defendant by telling the judge that defendant was an excellent legal secretary and that her incarceration would have a significant impact on his practice. Defendant was npt incarcerated at that time.
*384 Mr. Dabney further stated that after defendant left his employment, he discovered that defendant had embezzled about $18,000 from him over a period of ten months, beginning about two or three months after Mr. Dabney had spoken on her behalf before the judge in the prior misdemeanor case. Mr. Dabney stated that he obtained a civil judgment against defendant for the amount stolen, although he settled with defendant for a smaller sum. Mr. Dabney concluded by stating that defendant “has worked for three different employers. She has embezzled from all of us.”
After hearing Mr. Dabney’s statements; the arguments of both parties; and the statements of a representative of defendant’s most current employer, whose checks defendant was convicted of forging, the trial court stated that “the behavior of the defendant in this case is egregious,” and that:
The victims have been stacked up back to back. It is unlikely that more than a few days lapsed from victim A to victim B to victim C. And the Court is of the opinion that the theft was continuous, it was ongoing, and but for the fact that the defendant was caught on this case, three more employers would have resulted in three more victims.
The trial court also stated that it was “mind boggling to this Court to believe that anywhere from $600,000 has been taken by this defendant in the last decade, from people who just simply trusted this defendant with the store.” The trial court then sentenced defendant to serve three consecutive zero-to-five year terms for three third degree felonies, and ordered defendant to “make restitution in full.” Defendant appeals.
ANALYSIS
On appeal, defendant argues: (1) the trial court erred in sentencing her for three third degree felonies based on three counts of attempted forgery, as she is entitled to the reduced criminal penalty in effect at the time of her sentencing; (2) the trial court erred in imposing consecutive sentences based on the determination that defendant had committed three continuous crimes of embezzlement, which determination was premised in part on statements at the sentencing hearing made by defendant’s former employer concerning a prior civil dispute; and (3) the trial court erred in convicting defendant for three counts of attempted forgery rather than one count because the forgeries constituted a series of transactions which were part of one plan and which were motivated by one general intent.
I. Rescission of Plea Agreement by State
Defendant first argues that her sentence for three third degree felonies based on her conviction for three counts of attempted forgery was illegal, and that she should be resentenced according to the lesser penalty afforded by the amended statute in effect at the time of her sentencing.
2
She asserts that she should have been sentenced pursuant to the amended statute for three class A misdemeanors, rather than three third degree felonies.
3
The State concedes that there was an illegal sentence, but argues that the remedy should not be to resentence defendant according to the lesser penalty afforded by the amended statute, but instead to allow the State to rescind the plea agreement and reinstate the original forgery charges against defendant. The parties could then either negotiate a new plea agreement or proceed to trial on the original charges. Whether defendant was entitled to be resentenced according to the lesser penalty in place at the time of her sentencing, or whether the State is entitled to rescind the plea agreement, are questions of law. “We review questions of law for correctness, according no deference to the trial court’s con-
*385
elusions.”
State v. Yates,
Both this court and the Utah Supreme Court have consistently held that “[d]efendants are entitled to the benefit of the lesser penalty afforded by an amended statute made effective prior to their sentencing.”
Id.
at 138 (citing
Belt v. Turner,
“A legislative mitigation of the penalty for a particular crime represents a legislative judgment that the lesser penalty or the different treatment is sufficient to meet the legitimate ends of the criminal law. Nothing is to be gained by imposing the more severe penalty after such a pronouncement; the excess in punishment can, by hypothesis, serve no purpose other than to satisfy a desire for vengeance.”
Id. at 793 (citation omitted). The supreme court further discussed the policy considerations supporting the rule in Tapp, stating:
The first of these [considerations] is that it is the prerogative of the legislature, expressing the will of the people, to fix the penalties for crimes; and the courts should give effect to the enactment and the effective date thereof as so declared. There are some other fundamental principles engrained in our law which, though not directly controlling on the problem at hand, are generally in harmony with the policy considerations which lead to the conclusion we have reached herein_ [These principles include] the time-honored rules of the criminal law generally favorable to one accused of crime: that in case of doubt or uncertainty as to the degree of crime, [the accused] is entitled to the lesser, and correlated thereto: that as to an alternative between a severe or a lenient punishment, [the accused] is entitled to the latter.
Tapp,
Utah courts have refused to recognize exceptions to this rule, even where the defendant’s presentence misconduct resulted in the defendant’s sentencing being delayed beyond the effective date of the amendments.
See, e.g., Yates,
The State, however, argues that the rule set out in Belt and later cases does not apply to the present ease because, unlike the prior cases applying the Belt rule, the amended statute in- this case was in, effect before the parties entered into the plea agreement. The State argues that the plea agreement was therefore based on a mutual mistake of material fact and that the appropriate remedy, based on contract law principles, is to vacate the agreement and allow the State to reinstate the original forgery charges against defendant. 4
*386
Many courts, including the Utah Supreme Court and the United States Supreme Court, have referred to plea agreements as contracts and have applied principles derived from contract law to plea agreements.
See, e.g., Santobello v. New York,
The Utah Supreme Court stated that “[t]he nature of plea bargains requires the exchange of consideration, allowing the parties involved to reach a mutually desirable agreement. A plea bargain is a contractual relationship in which consideration is passed.” Id. The court continued by stating: “A plea bargain does not involve a situation where a defendant willingly pleads guilty to a crime, neither asking nor expecting anything in return.” Id. The court then determined that, in the case at hand, “[i]t would be ... implausible to assume that defendant would have bargained to plead guilty expecting nothing in return if the facts are as defendant asserts,” and noted that the defendant had “apparently received seriously deficient information from all persons involved in his case.” Id. The court therefore remanded the case to the trial court to determine “whether [the] defendant’s original guilty plea was entered into knowingly and voluntarily.” Id. 5
Although in applying contract principles to plea - agreements courts refer to both the State and the defendant as being entitled to the benefit of their bargain under the plea agreement,
see, e.g., United States v. Ringling,
We first note that, although courts recognize that “[pjrinciples of contract law provide a useful analytic framework” in eases involving plea agreements, they also recognize that there are limits to the contract analogy, and that contract principles “cannot be blindly incorporated into the criminal law in the area of plea bargaining.”
United States v. Ocanas,
Based in part on the constitutional concerns underlying plea agreements, courts will allow a defendant to withdraw a plea when the defendant entered into the plea agreement unknowingly and involuntarily.
See West,
The State has not shown that any of the circumstances under which states have been allowed to rescind plea agreements exist in the present case. Moreover, even applying traditional contract law principles, the State is not entitled to rescind the plea agreement in this case. Under contract law, a party may not rescind an agreement based on mutual mistake where that party bears the risk
*388
of mistake.
See
17A Am.Jur.2d
Contracts
§ 215 (1991). In this case, we conclude the State bore the risk of the mistake as to the law in effect at the time the parties entered into the plea agreement. The State is generally in the better position to know the correct law, given that the State has control over the charges in the information and final say over whether to accept a defendant’s plea, and the State must be deemed to know the law it is enforcing. Indeed, it is the State’s law, duly enacted by its legislative branch, that is in issue. The State must be charged with knowledge of its own legislative enactments and, in that sense, cannot be said to have been mistaken about the governing statute in effect when it agreed to the plea arrangement.
Cf. Osborne v. State,
Placing the burden on the State to be aware of the current provisions of the Utah statute under which defendant was charged is consistent with the constitutional concerns involved in plea agreements, as discussed above. Further, we note that this is not a situation where the law was not clear on its face, 7 or where the State was somehow induced into the mistake about the law. 8 Under these circumstances, we refuse to relieve the State of what it now considers a bad bargain where the plea agreement was the result of uninduced mistake as to the current provisions of Utah statute.
We conclude that the State may not rescind the plea agreement in this case based on mutual mistake. Instead, we hold that the “law on this question is clear and the instant ease does not present an exception to the well-established rule: Defendants are entitled to lesser criminal punishments mandated by statutes that become effective before the court imposes sentence.... After the legislature reduces criminal penalties, courts must impose sentences accordingly,”
Yates,
II. Due Process in Sentencing
Defendant also argues her right to due process and a fair sentencing hearing was violated because the trial judge based his decision to impose consecutive sentences on a civil dispute between defendant and a former employer. 9 Specifically, defendant asserts that because “the trial judge relied on a statement by a witness not under oath or subject to cross-examination regarding a civil matter as the basis for concluding that [defendant] had committed an additional crime and sentenced [defendant] based on that civil *389 matter,” her right to due process was violated.
Defendant’s counsel did not object to the statements of Mr. Dabney at the sentencing hearing, but only pointed out to the trial court that the prior incident was a civil matter.
10
Accordingly, this issue was not preserved for appeal. Defendant, however, asserts that we should consider this issue under the plain error doctrine.
See State v. Dunn,
The trial court has substantial discretion in conducting sentencing hearings and imposing a sentence,
see State v. Sanwick,
In this case, Mr. Dabney’s statements at the sentencing hearing were relevant to the character and history of the defendant.
See Howell,
III. Consolidation of Forgery Counts
Defendant finally argues that she was entitled to be convicted of one count of attempted forgery instead of three because the three counts were based on forgeries of three checks which occurred as part of an “ ‘embezzlement over a period of time’ ” and should therefore be “ ‘found to constitute one continuous transaction’ and ... one offense.”
State v. Crosby,
In arguing that the three forgeries should be considered one offense, defendant relies on the rule adopted in theft or embezzlement
13
eases that allows consolidation of multiple counts of theft in certain circumstances. Under this rule, where several takings are motivated by one general intention and one plan, “ ‘even though there is a series of transactions, there is but one offense.’ ”
State v. Kimbel,
Utah courts have not explicitly considered whether the theft consolidation rule should be applied to forgery cases; however, other
*391
courts considering this issue have refused to extend the rule to forgery.
See, e.g., People v. Neder,
In
Neder,
the California Court of Appeals explained the rationale for refusing to apply the theft consolidation rule to forgery cases.
See
[t]he real essence of the crime of forgery ... is not concerned with the end, i.e., what is obtained or taken by the forgery; it has to do with the means, i.e., the act of signing the name of another with intent to defraud and without authority, or of falsely making a document, or of uttering the document with intent to defraud. Theft pursuant to a plan can be viewed as a large total taking accomplished by smaller takings. It is difficult to apply an analogous concept to forgery. The designation of a series of forgeries as one forgery would be a confusing fiction.
Id.
This rationale is consistent with Utah’s revised forgery statute, which no longer provides different penalties for forgeries based on the dollar amount of the forged check, but instead provides generally that “[f]orgery is a felony of the third degree.” Utah Code Ann. § 76-6-501(3) (Supp.1996). Thus, we conclude that the theft consolidation rule does not apply to forgery cases, and, therefore, the trial court did not err in failing to consolidate the three counts of attempted forgery into one count. 14
CONCLUSION
The trial court did not abuse its discretion in considering the statements of Mr. Dabney at the sentencing hearing, nor did the trial court err in failing to consolidate defendant’s three counts of attempted forgery into one count. However, the trial court did err in sentencing defendant for three third degree felonies based on her plea of guilty to three counts of attempted forgery because defendant was entitled to be sentenced according to the lesser penalty afforded by the amend *392 ed forgery statute in effect at the time of her sentencing. Accordingly, we remand to the trial court for resentencing.
BILLINGS and ORME, JJ., concur.
Notes
. Section 76-6-501 formerly provided:
(3) Forgery is a felony of the second degr.ee if the writing is or purports to be: ....
(b) a check with a face amount of $100 or more....
(4) Forgery is a felony of the third degree if the writing is or purports to be a check with a face amount of less than $100; all other forgery is a class A misdemeanor.
Utah Code Ann. § 76-6-501 (1995).
The current version of this section no longer changes the classification of the offense based on the face value of the check, but instead generally provides: "Forgery is a felony of the third degree.” Utah Code Ann. § 76-6-501 (Supp.1996) (amendment effective May 1, 1995).
. Although defendant did not raise this issue before the trial court, this court may review defendant's sentence pursuant to Rule 22(e) of the Utah Rules of Criminal Procedure, which allows this court to review the legality of a sentence for the first time on appeal.
See State v. Brooks,
. Under Utah Code Ann. § 76-3-203(3) (1995), a person who has been convicted of a third degree felony may be sentenced to imprisonment for "an indeterminate term not to exceed five years." Under Utah Code Ann. § 76-3-204(1) (1995), a person who has been convicted of a class A misdemeanor may be sentenced to imprisonment "for a term not exceeding one year.”
. The State also suggests that in seeking resen-tencing under the amended statute, defendant is attempting to take "unfair advantage” of the parties’ mutual mistake to the State's detriment. The State asserts that were defendant to be re-sentenced as she requests, defendant would "un-fáirly reap a windfall from the parties’ mutual mistake at the State’s expense.” However, we disagree that defendant is somehow trying to take unfair advantage of the parties' oversight by
*386
seeking to be sentenced under the amended statute in accordance with clearly established law providing that defendants are
entitled
to the benefit of the lesser penally in effect at the time of their sentencing.
See generally Shelmidine v. Jones,
. In
State v. West,
Thus, in West, the State apparently agreed that it was appropriate to resentence the defendant according to the lesser penalty under the amended statute, but disagreed that the defendant should be entitled to withdraw his plea.
In contrast, defendant here is requesting resen-tencing according to the lesser penalty provided for in the amended statute, but does not seek to withdraw her plea. Under the circumstances here, the State would apparently allow defendant to withdraw her plea, but disagrees that she should be allowed to be resentenced according to the amended statute in effect at the time of her sentencing.
. For additional cases in which courts have suggested the limits of the contract analogy,
see Ricketts v. Adamson,
. For examples of cases in which plea agreements were vacated because of a later interpretation of state statute which the State could not reasonably anticipate,
see Daniels v. Smith,
. Courts consistently refuse to allow either party to modify or rescind a plea agreement based on uninduced mistake.
See, e.g., United States v. Harvey,
.Utah Code Ann. § 76-3-401(3) (Supp.1996) provides that in determining whether to impose consecutive, rather than concurrent, sentences, "[a] court shall consider the gravity and circumstances of the offenses and the history, character, and rehabilitative needs of the defendant."
. Defendant's counsel stated:
I would simply remind the Court [Dabney's] entire dispute with [defendant] was resolved as a civil dispute. He sued her. He obtained a judgment against her. He settled with her for an amount less than the judgment, but he did accept it as payment in full, and it was a civil matter, and not a criminal matter.
. The substance of Mr. Dabney's testimony was also contained in the presentence report as well as in a letter that Mr. Dabney provided to the court. Defendant did not object to any portion of the presentence report or to the letter.
.Although defendant argues she was not given the opportunity to cross-examine Mr. Dabney, there is no indication in the record that she was precluded from cross-examining him, but only that defendant’s counsel did not actually cross-examine him. Further, although defendant apparently suggests her due process rights were violated because Mr. Dabney was not placed under oath and was not cross-examined, defendant offers no legal authority to support her argument that this is a due process violation.
Utah courts have not previously addressed whether a defendant is entitled to cross-examine testifying witnesses at sentencing hearings; how
*390
ever, both the United States Supreme Court and courts from other states have indicated that there is no due process violation where no cross-examination is allowed or where witnesses are not placed under oath, so long as the defendant has the opportunity to refute the evidence presented or challenge its reliability.
See, e.g., Williams v. Oklahoma,
. Under Utah's present consolidated theft statute, Utah Code Ann. § 76-6-403 (1995), the general offense of "theft” includes "embezzlement” as well as other offenses that were considered separate offenses under prior law.
See State v. Casias,
. Defendant also cites Utah Code Ann. § 76-1-402 to support her argument that the court should have consolidated the three counts of attempted forgery. This section provides, in part, that "when the same act of a defendant under a single criminal episode shall establish offenses which may be punished in different ways under different provisions of this code, the act shall be punishable under only one such provision.” Utah Code Ann. § 76-1-402(1) (1995). "Single criminal episode” is defined as "all conduct which is closely related in time and is incident to an attempt or an accomplishment of a single criminal objective.” Id. § 76-1-401. However, as discussed above, the general rule is that the forgery of several documents even in the course of one transaction constitutes a separate offense for each instrument because the essence of the crime of forgery is not the end, i.e., what is obtained by the forgery, but the means, e.g., by signing the name of another with intent to defraud. Therefore, we conclude defendant is not entitled to consolidation of the three counts of forgery based on section 76-1-402.
Defendant also claims her trial counsel's failure to request consolidation of the three forgery counts constitutes ineffective assistance of counsel. However, because we conclude defendant was not entitled to consolidation of the counts, we reject this claim.
See Brooks,
