@Chiara *********
, I meant, You check your stamp, regardless of the entry stamp or extension stamp, every time you get it to keep it right. Entry stamp when you enter Thailand, AND extension stamp when you apply for it at the local immigration office. Officers make mistakes from time to time. But the stamps on your passport are your responsibility, not the officers'.
Anyway, safe travels (y)