@Thomas ******
just because an extension based on education runs out it does NOT mean that you canceled it officially. You need to take a letter from your school saying you're stopping studying, go to the immigration office and cancel your current extension of stay. They will cancel it and stamp you in until the last day you're studying (as stated on the letter from your school)
You can go to the immigration office a week or so before that date to cancel the extension