@Sha *****
as most everyone correctly stated you go back to the immigration office, get a queue and go to the same counter as you just went to (which if it was bangkok was counter C-1) on sept 1st and they will stamp the Non-B visa into your passport, stamp USED on it and then stamp you with a new 90 day stamp