
60 Mich. App. 371 (1975)
230 N.W.2d 438
PEOPLE
v.
JOHNSON
Docket No. 20534.
Michigan Court of Appeals.
Decided April 9, 1975.
*372 Frank J. Kelley, Attorney General, Robert A. Derengoski, Solicitor General, William L. Cahalan, Prosecuting Attorney, Dominick R. Carnovale, Chief, Appellate Department, Patricia J. Boyle, Principal Attorney, Research Training and Appeals, and Luvenia D. Dockett, Assistant Prosecuting Attorney, for the people.
Carrie J. Thompson, for defendant on appeal.
Before: ALLEN, P.J. and McGREGOR and M.F. CAVANAGH, JJ.
PER CURIAM.
Defendant was originally charged with breaking and entering, rape, gross indecency, and armed robbery. On September 19, 1973, he pled guilty to the charges of gross indecency, MCLA 750.338b; MSA 28.570(2), and assault with intent to rob, being unarmed. MCLA 750.88; MSA 28.283. On October 25, 1973, defendant received concurrent three- to five-year sentences for gross indecency and attempted robbery not armed. MCLA 750.530; MSA 28.798 and MCLA 750.92; MSA 28.287. Subsequently, the error was discovered in the presentence report, and the trial court issued a writ of habeas corpus and had defendant returned to court for resentencing January 18, 1974. The three- to five-year sentence for gross indecency was allowed to stand, but the trial court corrected defendant's sentence to one of 5 to 15 years in prison for assault with attempt to rob not being armed. The crime for which defendant was originally and erroneously sentenced carried a maximum sentence of five years. MCLA 750.530; MSA 28.798 and MCLA 750.92; MSA 28.287. The crime to which defendant pled guilty carries a maximum sentence of 15 years. MCLA 750.88; MSA 28.283.
*373 Relying upon North Carolina v Pearce, 395 US 711; 89 S Ct 2072; 23 L Ed 2d 656 (1969), defendant argues that the trial court imposed a more severe sentence to retaliate against defendant after defendant had filed his claim of appeal in December of 1973. At the January 18, 1974 proceeding, the trial court indicated that it was aware of defendant's attempt to file a claim of appeal. Apparently defendant had filed his claim improperly, and the January 18 transcript reveals that the judge knew of this fact. The court was trying to correct its error, and defense counsel told the court that he had advised defendant of the purpose of the January 18, 1974 proceeding. While the record shows that defendant was under the mistaken impression that a new trial was to commence that day, the record fails to support defendant's claim of retaliation. At the plea-taking proceedings September 19, 1973, the trial court asked defendant if he understood that "the maximum penalty * * * for assault with intent to rob unarmed is 15 years and the maximum penalty for gross indecency is 5 years * * * ". Defendant responded "Yes". We further note that a claim of appeal was not filed until May 17, 1974.
Secondly, it is argued that the trial court lacked the authority, once it had imposed a valid sentence, to resentence defendant. We are cognizant of the general rule that once a valid sentence is imposed upon a defendant, the trial court loses the power to vacate that sentence and impose a new one. See People v Meservey, 76 Mich 223, 226; 42 NW 1133 (1889), and People v Kelley, 79 Mich 320, 321; 44 NW 615 (1890). However, the October 25, 1973 sentence was erroneous because it was based upon an offense to which defendant had not pled guilty. We find that after discovering the error, *374 the trial court had the authority to issue a writ of habeas corpus and properly sentence defendant for the offense to which he had pled guilty. In re Pardee, 327 Mich 13, 18; 41 NW2d 466 (1950), and In re Doelle, 323 Mich 241, 246; 35 NW2d 251 (1948).
Affirmed.
