Defendant, who was improperly sentenced as a second violent felony offender to a term of 5 to 10 years ( People v Gilchrist, 223 AD2d 382), was improperly resentenced, as a firsttime felony offender, to a term of 5 to 15 years. Defendant had a reasonable expectation of finality in the 10-year maximum term originally imposed pursuant to his plea bargain ( see, Stewart v Scully, 925 F2d 58; People v Hoppie, 220 AD2d 528; cf., People v Spears, 228 AD2d 193), and the minimum period of imprisonment for a first-time attempted first-degree robbery offender at the time the instant offense was committed was onethird of the maximum term (Penal Law § 70.02 [b]; [2] [a]; [former (4)]). Inasmuch as the 15-year maximum term imposed by the sentencing court shows that it would not, if given another opportunity to sentence, impose a maximum term of less than 10 years, we modify the resentence to 31/3 to 10 years.