[EDITORS' NOTE: THIS PAGE CONTAINS HEADNOTES. HEADNOTES ARE NOT AN OFFICIAL PRODUCT OF THE COURT, THEREFORE THEY ARE NOT DISPLAYED.] *Page 317
Petitioner State of Washington seeks review of a decision by the Court of Appeals, Division Three, which granted the personal restraint petition of Respondent Ira Erwin Call, remanding to the Spokane County Superior Court for resentencing on his conviction for robbery in the *Page 318 first degree because of the inadvertent inclusion of two prior convictions in Texas which had `washed out' with the result that the trial court used an offender score of 10 instead of 8 and sentenced him to 129 months instead of 108 months, the lower end of the standard range. We granted review. We affirm.
QUESTION PRESENTED The question presented in this case is whether the invited error doctrine precludes a defendant from arguing in a personal restraint petition that his offender score is lower than the Prosecuting Attorney and the defendant jointly represented to the trial court at sentencing even though the sentence actually imposed was within the standard range, but not at the low end of the standard range, for the correct offender score.
STATEMENT OF FACTS On April 22, 1999, the Spokane County Prosecuting Attorney filed a second amended information in the Spokane County Superior Court charging Respondent Ira Erwin Call with robbery in the first degree.1 The information read:
That the defendant, IRA ERWIN CALL, in the State of Washington, on or about December 9, 1998, with the intent to commit theft, did unlaw-fully [sic] take and retain personal property, an automobile, a purse and its contents, from the person and in the presence of Lila K. Milliron, against such person's will, by use or threatened use of immediate force, violence and fear of injury to Lila K. Milliron, and in the commission of and immediate flight therefrom, the defendant was armed with a deadly weapon, to wit: a knife[.]
That same day, the trial court, the Honorable Linda G. Tompkins, accepted Respondent's plea of "guilty" to the one *Page 319 count of first degree robbery.2 Judge Tompkins also accepted his plea of `guilty' to two additional offenses: second degree robbery and first degree theft.3 The parties agreed that Respondent would plead guilty to all three offenses and that the Prosecuting Attorney would dismiss a deadly weapon enhancement charge and four counts of forgery in conjunction with the first degree robbery charge, and dismiss one count of possession of stolen property in the first degree.4
The Prosecuting Attorney and Respondent both agreed that Respondent's offender score for purposes of sentencing was "9 plus, essentially a 10" on the two robbery convictions and 9 on the theft conviction.5 The calculation of his offender score of 10 included seven prior offenses,6 two of which were committed in Texas,7 and the two other additional offenses charged against him in this case.
The Prosecuting Attorney agreed to recommend a *Page 320 sentence at the low end of the standard range8 based upon an offender score of 10, which the parties agreed was 129 to 171 months on the first degree robbery conviction.9 The Prosecuting Attorney and Respondent jointly recommended that the court sentence Respondent to 129 months on the first degree robbery conviction.10 The court sentenced him to 129 months on that charge.11 The court also ordered the sentences on the two other offenses to be served concurrently with the first degree robbery conviction.12 Respondent did not appeal.
On June 22, 1999, Respondent Call filed a personal restraint petition in the Court of Appeals, Division Three, contending the trial court based his sentence for first degree robbery on an incorrect offender score.13 He argued that his two prior Texas convictions should not have been used in calculating his offender score for the first degree robbery conviction because they "washed out" under former RCW 9.94A.360(2) (1999) of the Sentencing Reform Act (SRA) of 1981. He claimed his Texas convictions were equivalent to Class C felonies and he was free in the community for more than five years before his next offense — a 1996 forgery *Page 321 conviction.14 The State responded that any error was invited because of the plea agreement between Respondent and the State and their joint agreement to recommend a sentence of 129 months; and even if the Texas convictions were not counted, Respondent's offender score would be 8 and his sentence of 129 months would still be within the standard range of 108 to 144 months.
The Court of Appeals contacted the Texas Department of Criminal Justice which confirmed that Respondent was released from confinement on the two 1987 Texas convictions more than five years before his next offense.15
After informing the State of this information and inviting a response,16 the Court of Appeals granted Respondent's personal restraint petition on March 30, 2000 and remanded the case for resentencing using an offender score of 8 instead of a score of 10 in calculating his sentence for first degree robbery.17 The Court of Appeals, in an unpublished per curiam opinion, stated that:
The invited error doctrine cannot cure the court's lack of statutory authority for a sentence imposed using an incorrect offender score. Further, it is impossible to say with certainty that the superior court here would have imposed the same sentence if it had used the proper offender score. As set forth *Page 322 above, Mr. Call's statement on plea of guilty indicates the State would recommend a "low end" standard range sentence. "Low end", counting the Texas convictions, is the 129 months that the sentencing court imposed. "Low end", without those convictions, is 108 months. If the court would have sentenced Mr. Call to 108 months, had it used a proper offender score, then he has suffered prejudice by the court, instead, using the improper offender score.18
On April 17, 2000, the State filed a motion for reconsideration, arguing that any alleged error was invited and that the Court of Appeals had erroneously applied direct appeal standards in a personal restraint petition, having equated an alleged sentencing error with lack of authority to impose a sentence.19 The Court of Appeals denied the motion on May 18, 2000.20
Petitioner State then sought review by this court, which was granted on December 6, 2000.21 DISCUSSION Petitioner State of Washington contends the Court of Appeals erred in granting Respondent Ira Erwin Call's personal restraint petition and directing the trial court to resentence him with an offender score of 8 instead of a score of 10 for his first degree robbery conviction.22 Respondent Call argues that the Court of Appeals properly determined his sentence for first degree robbery was calculated upon an erroneous offender score.23 He agrees with the Court of Appeals that because his two prior Texas convictions should have "washed out" under former RCW 9.94A.360(2), the *Page 323 incorrect offender score of 10 increased his correct sentence range from 108 to 144 months to the incorrect sentence range of 129 to 171 months, which resulted in a low-end sentence of 129 months instead of a low-end sentence of 108 months, thus incorrectly adding 21 months to his sentence.24 Petitioner does not concede that Respondent's two prior Texas convictions "wash out" under the SRA.25 Petitioner argues instead that the invited error doctrine precludes a challenge to an agreed offender score and sentence recommendation26 and that Respondent has not met his burden in this personal restraint proceeding of establishing an unconstitutional error amounting to a miscarriage of justice.27
Petitioner contends that Respondent cannot challenge his offender score of 10 because his statement on the plea of guilty form prepared by his lawyer represented to the court that his "standard range on the first degree robbery charge was 129 to 171 months based on the prosecutor's understanding of [his] criminal history and that the statement of criminal history was correct"; both the prosecutor and the defense asked the court to impose a 129-month sentence; and the plea agreement dismissed five felony counts and a weapons enhancement count.28 Respondent claims he was *Page 324 misled and was not made fully aware of the "potential . . . defect" by the plea documents, and that both the court and the State provided him with an inaccurate standard sentence range.29 He asserts the plea agreement required the State to recommend a "low-end range" sentence, and the correct low end is 108 months and not 129 months.30
Petitioner argues the facts of this case are similar to other cases in which courts have declined challenges to plea agreements based upon invited error, waiver, or benefit of the bargain.31 Respondent counters that the cases cited by the State are distinguishable, and instead offers other cases he considers analogous.32
A similar argument advanced by Petitioner in this case was rejected by this court in In re Personal Restraint of Thompson.33 In that case, the State argued that "where a defendant has bargained for and received a benefit in exchange for his plea, he must adhere to his bargain."34 In *Page 325 addressing the issue in Thompson,35 this court distinguished Statev. Majors,36 a case relied upon by Petitioner, and In re PersonalRestraint of Barr.37
In Majors, the defendant stipulated to two prior convictions for the purpose of being declared a habitual offender in exchange for a reduced charge of second degree murder, even though one of the two prior convictions was for a crime committed after the underlying offense for which he was sentenced as a habitual offender.38 On appeal, the defendant claimed the supplemental information was defective and void on its face because one of his prior felony convictions occurred after the underlying offense for which he was sentenced as a habitual offender.39 This court rejected the defendant's claim and concluded that "[i]nasmuch as [defendant's] attack . . . was not jurisdictional and [he] was not misled by the technical defect, we hold he must be held to the terms of the plea bargain."40
This court's holding in In re Personal Restraint of Barr is consistent with Thompson and Majors. In Barr, the petitioner pleaded "guilty" to a reduced charge of indecent liberties in exchange for dismissal of one charge of second degree statutory rape and one charge of third degree statutory rape. The parties to the plea agreement incorrectly believed the indecent liberties statute required the *Page 326 victim to be 14-years-old or less. However, the statute actually read "less than 14."41 In his personal restraint petition, petitioner challenged the validity of his plea because he was not told of a critical element of the charge. In rejecting his claim, this court upheld his plea as both voluntary and intelligent because he "was fully aware that the State's information alleging indecent liberties was potentially defective. The plea bargain, with its factually suspect information, was completely disclosed to the trial court."42 This court concluded the petitioner was not misled by the defect before entering the plea agreement.
The reasoning of Thompson is persuasive in this case. Although Respondent does not challenge the validity of his plea of "guilty" to first degree robbery,43 and challenges only the length of his sentence, there is nothing in the record to indicate he understood that in pleading "guilty" he was electing to have his two prior Texas convictions counted in calculating his offender score even though they washed out under the SRA. In fact, neither Respondent, the State nor the sentencing court was aware of that fact. This, however, was a technical defect which must be reviewed in terms of its consequences. Respondent could not gain any advantage by intentionally concealing the error before the sentencing court with the intent to raise it later in a personal restraint proceeding. The technical defect was completely inadvertent. Respondent's criminal history was listed on the various forms reviewed by both parties and the court and neither counsel nor the court was aware an error had been made. However, Respondent was misled by the error to his detriment. The other cases cited *Page 327 by Petitioner are clearly distinguishable.44
In this case, the parties and the court were inadvertently misled about Respondent's offender score, the proper standard sentence range and the actual low-end sentence applicable to the agreed sentence recommendation. A similar situation occurred in State v. Walsh,45 in which the defendant agreed to a reduced charge of second degree rape in exchange for dismissal of three other counts and the prosecuting attorney's promise to recommend a sentence at the low end of the standard range. Defendant's plea form indicated one prior conviction for vehicular assault.46 Both parties were mutually mistaken about the effect of that history on defendant's standard range. Although his criminal history was agreed upon, his standard range was higher than that stated on his plea agreement.47 This court observed that "[n]othing in the record shows that Walsh himself was ever advised or realized before the sentencing proceeding that the standard range is not what the parties believed when the plea agreement was reached and accepted by the court."48 Defendant was sentenced to an exceptional sentence of 136 months and appealed. This court held that his guilty plea was not voluntary based upon the mutual mistake about the standard range sentence49 and that he was entitled to challenge the plea's *Page 328 validity for the first time on appeal.50
The Walsh case is analogous to this case in that there was a low-end sentence recommendation by the prosecutor; the parties and the court were not aware that the sentence range in the plea agreement was incorrect; the defendant was unaware of the error; and despite the fact the issue was raised for the first time on appeal, this court concluded the error could be raised in a personal restraint petition.51 However, in that case, the prosecutor's recommendation was not in accord with the terms of the plea agreement. In this case, the prosecutor's sentence recommendation of 129 months was consistent with the plea agreement. Nonetheless, like the defendant in Walsh, Respondent Call was not aware of the error in calculating his offender score to determine the 129-month sentence stated in the plea agreement and imposed by the court.
Petitioner claims the invited error doctrine should apply to Respondent Call because the doctrine is not limited to cases in which the defendant knew the nature of the alleged error he was inviting before asking the court to act upon it.52
The doctrine of invited error "prohibits a party from setting up anerror at trial and then complaining of it on appeal."53 This court has observed that the invited error doctrine "appears to require affirmative actions by the defendant . . . [in which] the defendant took knowing and voluntary actions to set up the error; where the defendant's actions were not voluntary, the court did not apply the doctrine."54 *Page 329
Petitioner argues that Respondent's prompt filing of his personal restraint petition implies a strategy to set up the error, and claims Respondent was aware of the error all along.55 The State has provided no evidence that Respondent knowingly pleaded "guilty" to an incorrect offender score resulting in an incorrect sentence range.56 From the record in this case we conclude that neither Respondent, the Prosecuting Attorney nor the sentencing court was aware of the error in calculating Respondent's offender score and standard range. Because there was no apparent affirmative action by Respondent which contributed to the inadvertent error, we conclude he did not invite it.
Respondent has overcome the argument that the invited error doctrine precludes him from seeking collateral review of his 129-month sentence based upon an obviously incorrect offender score. However, he must still demonstrate that he is entitled to relief under RAP 16.4. Under RAP 16.4 "[i]n order to obtain relief by way of personal restraint petition . . . a person must establish (1) [the person is] being unlawfully restrained, (2) due to a `fundamental defect which inherently results in a complete miscarriage of justice.'"57
Petitioner contends the Court of Appeals in this case erroneously applied direct appeal standards of proof in a personal restraint proceeding, having equated a court acting "without statutory authority" with a "fundamental defect" and implicitly finding that such a defect constitutes *Page 330 a miscarriage of justice.58 The Court of Appeals, in granting Respondent Call's personal restraint petition, relied upon a determination by Division One that "`a sentencing court acts without statutory authority when it imposes a sentence based on a miscalculated offender score;'"59 and this court's conclusion in a case decided on appeal that "it is the State, not the defendant, who bears the ultimate burden of ensuring the record supports the existence and classification of out-of-state convictions."60 Respondent argues that Petitioner's claim is not correct that relief from a sentencing error, like the error in this case, cannot be obtained in a personal restraint proceeding, and cites as authority this court's decisions in In re Personal Restraint ofGreening61 and In re Personal Restraint of Johnson.62
In Greening petitioner challenged as unlawful the trial court's imposition of firearm enhancements to run consecutively, rather than concurrently, in accord with Court of Appeals cases decided prior to this court's decision in In re Post Sentencing Review of Charles.63 The issues presented in Greening concerned whether the petitioner received the benefit of the significant change in the law as directed by this court in In re Charles.64 In Greening, the State conceded that petitioner's firearm enhancements were *Page 331 unlawfully imposed.65 In granting Petitioner Greening's personal restraint petition, this court identified the applicable rule, RAP 16.4(c)(2),66 and analogized petitioner's case to other cases in which collateral attack was permitted upon sentences imposed by courts having no statutory authority to impose the particular sentence.67 In that case, the court stated "[w]e have already ruled that unlawful confinement satisfies the `fundamental defect' standard."68
Under Greening, a personal restraint petition can be used to correct a sentence that was unlawfully imposed. Such an unlawful sentence meets the "fundamental defect" standard regardless whether the error is a sentence that improperly runs consecutively instead of concurrently (Greening); a sentence with an improper weapon enhancement (Carle);69 an improper sentence of life without the possibility of parole (Moore);70 or an improper sentence based upon a miscalculated offender score (Johnson).
This court has held that in the context of sentencing, "illegal or erroneous sentences may be challenged for the first time on appeal."71 Under this principle, a "challenge to the offender score calculation is a sentencing error *Page 332 that may be raised for the first time on appeal."72 Courts have the duty and power to correct an erroneous sentence upon its discovery.73 This applies similarly to errors raised in a personal restraint petition.
Respondent, acting pro se, did not avail himself of an appeal, but elected to file a personal restraint petition to challenge his miscalculated offender score. He argues the standard range was incorrectly calculated by including his two prior Texas convictions which should not have been used in calculating his offender score. Because the sentencing court must first calculate the correct standard range before imposing a sentence within that range, failure to do so is legal error subject to review.74
Respondent has established his restraint is unlawful in that he was sentenced to a 129-month term on the basis of an incorrectly calculated offender score. A sentencing court acts without statutory authority under the SRA when it imposes a sentence based upon a miscalculated offender score.75 The law regarding the calculation of Respondent's offender score when he was sentenced required his two prior Texas convictions to wash out under the SRA, leaving him with a score of 8 and a standard sentence range of 108 to 144 months, and not a standard range of 129 to 171 months based upon the incorrect offender score of 10.
Respondent has also demonstrated a fundamental *Page 333 defect under the particular facts of this case.76 The incorrect calculation of an offender score constitutes a fundamental defect in sentencing resulting in a miscarriage of justice which requires relief in a personal restraint proceeding.77 Petitioner makes an argument similar to that proposed by the State in In re Personal Restraint ofJohnson. In this case, Petitioner argues that Respondent is not entitled to any relief because the 129-month sentence he received still falls within the standard range for the lower offender score of 8 — between 108 to 144 months — and therefore was within the authority of the trial court. In the context of sentencing, the general rule is that "[a] sentence within the standard range for the offense shall not be appealed."78 But the question must still be decided in this case whether Respondent's sentence was in fact within the standard range.
Unlike the sentencing judge in Johnson, the sentencing judge in this case did not specifically indicate on the record that she intended to sentence Respondent Call at the low end of the standard range. However, the record does indicate the judge believed 129 months was the low end of the standard range based on an offender score of 10. This court has long held "the existence of an erroneous sentence requires resentencing.'"79 This principle also applies to a sentence imposed under the SRA in which an incorrect offender score is used to calculate the standard sentence range.80 The sentencing court should be afforded an opportunity to determine the appropriate sentence based upon accurate information used as a basis for calculating an offender score and in determining the correct sentence range under the SRA. We therefore agree with the Court of *Page 334 Appeals and remand this case to the trial court for resentencing.
SUMMARY AND CONCLUSIONS Respondent Ira Erwin Call was sentenced to 129 months for robbery in the first degree upon an incorrectly calculated offender score. His two prior Texas convictions should have washed out under former RCW 9.94A.360(2), resulting in an offender score of 8, instead of an offender score of 10 used by the trial court in determining his sentence based upon agreement of the Prosecuting Attorney and Respondent.
The error in determining his offender score was first noted when Respondent filed a pro se personal restraint petition with the Court of Appeals. In granting the petition, the Court of Appeals correctly determined his sentence for first degree robbery was incorrectly calculated because an offender score of 10 instead of a correct offender score of 8 increased his sentence range from the correct range of 108 to 144 months to the incorrect range of 129 to 171 months, representing an excess of 21 months.
In this case, Petitioner State's assertion that the invited error doctrine precludes a challenge to a mutually agreed offender score and sentence recommendation is not justified. The doctrine of invited error "prohibits a party from setting up an error at trial and then complaining of it on appeal." The doctrine requires that a defendant take affirmative action. In this case, there is no evidence that in pleading "guilty" Respondent knowingly agreed to an incorrect offender score or an incorrect sentence range. The record indicates that neither the Prosecuting Attorney, Respondent, nor the sentencing court was aware of the error in calculating Respondent's offender score and in determining his standard sentence range. We conclude that Respondent did not invite this error.
Courts have the duty and power to correct an erroneous sentence upon its discovery. Respondent, acting pro se, did *Page 335 not avail himself of an appeal, but chose to file a personal restraint petition to challenge his miscalculated offender score. The sentencing court is obligated to calculate the correct offender score and determine the correct standard range before imposing a sentence. It is legal error subject to review when that is not done.
Respondent has demonstrated he is entitled to collateral relief under RAP 16.4. He has established his restraint was unlawful in that he was sentenced on the basis of an incorrectly calculated offender score. He has also demonstrated a fundamental defect under the particular facts of this case. The sentencing court should be afforded an opportunity to determine the appropriate sentence based upon accurate information used as a basis for calculating an offender score and in determining the correct sentence range under the SRA.
We affirm the decision of the Court of Appeals, Division Three, which granted the personal restraint petition of Respondent Ira Erwin Call, remanding to the Spokane County Superior Court for resentencing on his conviction for robbery in the first degree, but direct the trial court to determine an appropriate sentence based upon accurate information in calculating an offender score and in determining the correct sentence range under the SRA.
ALEXANDER, C.J., and JOHNSON, MADSEN, SANDERS, IRELAND, BRIDGE, CHAMBERS, and OWENS, JJ., concur.