Aaron Matthew DeRoo pleaded guilty to a one count indictment for possession of ammunition by a convicted felon in violation of 18 U.S.C. §§ 922(g)(1), 924(a)(2), and 924(e)(1), and was sentenced to 210 months imprisonment with 3 years of supervised release and a $50 special assessment. DeRoo filed a motion pursuant to 28 U.S.C. § 2255 to vacate, set aside, or correct his sentence based on ineffective assistance of counsel. Citing to the plea agreement in which DeRoo stated that he waived all rights to contest the conviction or sentence in any post-conviction proceeding pursuant to section 2255, the District Court summarily denied the motion. De-Roo appeals. We affirm in result only, vacate his sentence on other grounds, and remand for resentencing.
I.
On May 2, 1995, while executing a search warrant at DeRoo’s residence, officers discovered ammunition belonging to DeRoo, including 34 rounds of 12 and 20-gauge shotgun ammunition, 15 rounds of 7.62 x 39 mm ammunition, 14 rounds of 9 mm ammunition, and 3 rounds of .22 caliber short ammunition. A federal grand jury indicted DeRoo on one count of possession of ammunition by a convicted felon, a violation of 18 U.S.C. §§ 922(g)(1), 924(a)(2), and 924(e)(1). An arrest warrant was issued and a detainer filed with the county correctional facility where De-Roo was being held on state charges.
DeRoo was detained on the federal charges, and at his arraignment and detention hearing he entered a plea of not guilty and was detained pending trial. On the day his trial was to begin, DeRoo changed his plea to guilty pursuant to a Rule 11(e)(1)(B) plea agreement. The plea agreement states that DeRoo waives any right to appeal the judgment and sentence under 18 U.S.C. § 3742(a), and that he waives all rights to contest the conviction or sentence in any post-conviction proceeding pursuant to 28 U.S.C. § 2255. The plea agreement cites to
United States v. His Law,
The District Court sentenced DeRoo to 210 months imprisonment with 3 years of supervised release and a $50 special assessment. His sentence was enhanced pursuant to the Armed Career Criminal Act, 18 U.S.C. § 924(e)(1), based on three Minnesota convictions: a 1989 plea of guilty to three counts of third degree burglary, a 1990 plea of guilty to one count of second degree burglary, and a 1992 plea of guilty to two counts of fifth degree controlled substance crimes. DeRoo did not file a direct appeal of the District Court’s sentence nor did he appeal the conviction or sentence under 18 U.S.C. § 3742(a). DeRoo did instruct his counsel to appeal the District Court’s decision denying a three-level reduction for acceptance of responsibility, but counsel did not file an appeal.
DeRoo obtained new counsel and filed a motion under 28 U.S.C. § 2255 to vacate, set aside, or correct his sentence, claiming he had been deprived of his constitutional right to effective assistance of counsel on a number of grounds. DeRoo claimed original counsel’s mistakes resulted in ineffective assistance of counsel under the Sixth Amendment to the United States Constitution, affecting the outcome of the plea process. In particular, DeRoo alleged that he waived his right to trial and was sentenced to 210 months in a federal prison as *923 a result of original counsel’s ineffective assistance.
In its ruling bn the motion, the District Court stated that DeRoo “specifically and unequivocally waived all rights to contest his sentence in any post-conviction proceeding.” United States v. DeRoo, Nos. A3-98-70/C3-96-39, at 2 (D.N.D. filed Nov. 25, 1998) (order denying section 2255 motion). The District Court further noted that DeRoo agreed as part of the plea agreement that any application for such relief should be summarily dismissed. See id. The District Court then denied the motion, “[i]n light of this knowing and voluntary waiver of the right to contest the sentence in any post-conviction proceeding.” Id.
II.
We granted a certificate of appealability on the single issue of whether DeRoo validly waived his section 2255 right to challenge his conviction and sentence on the grounds of ineffective assistance of counsel resulting from counsel’s failure to file a motion to dismiss the indictment. Appellate review is limited to the issues specified in the certificate of appealability.
See Richardson v. Bowersox,
There is no question in this circuit that a knowing and voluntary waiver of direct-appeal rights is generally enforceable.
See United States v. Goings,
As a general rule, we see no reason to distinguish the enforceability of a waiver of direct-appeal rights from a waiver of collateral-attack rights in the plea agreement context.
See id.
(citing
Jones v. United States,
However, such waivers are not absolute. For example, defendants cannot waive their right to appeal an illegal sentence or a sentence imposed in violation of the terms of an agreement.
See United States v. Michelsen,
A decision to enter into a plea agreement cannot be knowing and voluntary when the plea agreement itself is the
*924
result of advice outside “the range of competence demanded of attorneys in criminal cases.”
Hill v. Lockhart,
In his section 2255 motion, DeRoo argued that counsel’s failure to file a motion to dismiss the indictment, among other errors, induced him to plead guilty, and that but for counsel’s errors he would have proceeded to trial. Thus, the motion at least facially claims that DeRoo’s decision to enter into the plea agreement and waive his appeal rights was not knowing and voluntary as a result of ineffective assistance of counsel. The District Court, therefore, erred when it denied the motion without discussion, citing only to the plea agreement waiver and statement that any application for such relief should be summarily dismissed. Dismissal of a section 2255 motion on the basis of a waiver in the plea agreement is inappropriate when the defendant’s claims of ineffective assistance relate to the negotiation of, and entry into, the plea agreement and waiver. We recognize that there may be other cases in which a section 2255 waiver can be upheld summarily despite claims of ineffective assistance of counsel.
See, e.g., United States v. Wilkes,
Ordinarily we would remand the matter to the District Court for hearing and ruling on the motion. There is no need to remand, however, because the record relating to DeRoo’s ineffective assistance of counsel claim is sufficient to permit meaningful review on appeal.
See United States v. Johnston,
*925 III.
A defendant “faces a heavy burden” to establish ineffective assistance of counsel pursuant to section 2255.
United States v. Apfel,
Under section 922(g)(1), it is unlawful for a person convicted in any court of a crime punishable by more than one year to possess ammunition. What constitutes a conviction for purposes of section 922(g)(1) is determined in accordance with the law of the jurisdiction where the proceedings were held, in this case Minnesota.
See
18 U.S.C. § 921(a)(20);
United States v. Traxel,
Minnesota’s civil rights restoration statute restores a person to “all civil rights and to full citizenship, with full rights to vote and hold office, the same as if such conviction had not taken place.” Minn. Stat. § 609.165 subd. 1. However, a firearms limitation provides that “a person who has been convicted of a crime of violence ... is not entitled to ship, transport, possess, or receive a firearm until ten years have elapsed since the person was restored to civil rights and during that time the person was not convicted of any other crime of violence.” Minn.Stat. § 609.165 subd. la. In accord with subdivision la, DeRoo’s Certificate of Discharge and Restoration to Civil Rights issued by the State of Minnesota explicitly notes that he cannot ship, transport, possess or receive a firearm for ten years. Therefore, under the plain language of the “unless clause” of section 921(a)(20), DeRoo’s restorations are insufficient to keep his convictions from counting as predicate convictions under section 922(g)(1).
See Traxel,
DeRoo states that his Certificate of Discharge and Restoration does not specifically prohibit the possession of ammunition. We note that the Minnesota Statute does not prohibit possession of ammunition
*926
either.
See
Minn.Stat. § 609.165 subd. la. However, whether state law allows DeRoo to possess ammunition is immaterial.
See United States v. Fisher,
We conclude that even if DeRoo’s counsel were deficient in failing to research and file the motion to dismiss the indictment, DeRoo suffered no prejudice because there is no reasonable probability that the motion would have been successful. Because DeRoo’s ineffective assistance of counsel claim fails on the merits, we find DeRoo’s waiver knowing and voluntary and that his section 2255 motion was correctly denied.
IV.
We question, sua sponte, whether DeRoo’s Minnesota conviction of two counts of fifth degree sale of a controlled substance should have counted as a predicate offense for purposes of the Armed Career Criminal Act, 18 U.S.C. § 924(e)(1). Although DeRoo has not raised this issue, appellate courts can examine a critical issue affecting substantial rights sua sponte in criminal cases under Federal Rule of Criminal Procedure 52(b).
See United States v. Granados,
Under the Armed Career Criminal Act, if a defendant has three previous convictions for a “violent felony” or a “serious drug offense” as defined in the statute, and he violates section 922(g)(1), his sentence is enhanced; the defendant shall be imprisoned for a minimum of 15 years and fined a maximum of $25,000. See 18 U.S.C. § 924(e)(1). The District Court enhanced DeRoo’s sentence under section 924(e)(1) based on his two burglary convictions and his controlled substance conviction. DeRoo’s two Minnesota burglary convictions qualify as predicate offenses because burglary is considered a violent felony under the statute. See 18 U.S.C. § 924(e)(2) (B)(ii). However, because his conviction for two counts of fifth degree sale of a controlled substance is not considered a conviction for a serious drug offense under the statute, the District Court improperly enhanced his sentence.
A “serious drug offense” under the statute includes “an offense under State law, involving ... distributing, or possessing with intent to ... distribute, a controlled substance ... for which a maximum term of imprisonment of ten years or imore is prescribed by law.” 18 U.S.C. § 924(e)(2)(A)(ii) (emphasis added). Under Minnesota law, however, a person con *927 victed of a fifth degree controlled substance crime is subject to imprisonment for not more than five years, unless it is a “subsequent controlled substance conviction” in which case the penalty would include a maximum term of imprisonment of ten years. See Minn.Stat. § 152.025 subd. 3(a), (b). There is no indication in the record that DeRoo had a previous controlled substance conviction. Nor does the record reveal another crime that could serve as the third predicate offense. 2 Therefore, the application of section 924(e)(1) was incorrect, and-DeRoo should have been sentenced under section 924(a)(2) (penalty of not more than 10 years imprisonment).
V.
We affirm the judgment of the District Court denying DeRoo’s section 2255 motion as modified by this opinion. We vacate DeRoo’s sentence and remand for re-sentencing in accordance with section 924(a)(2).
Notes
. The presentence investigation report reveals that at the same time DeRoo pleaded guilty to the two counts of fifth degree controlled substance crime, he pleaded guilty to possession of a legend drug under Minnesota Statute § 151.37 subdivision 1. However, unauthorized possession of a legend drug cannot be a predicate offense for the application of section 924(e)(1) because it is a misdemeanor in Minnesota. See Minn.Stat. § 151.29.
