Irene, Since there are no printed pedal markings in my copy (Durand amd Co.) I have marked the beginning of bar 32 with G natural, to cancel the G# you mention; and the beginning of bar 39 with a G natural to cancel the G sharps needed in bars 37 and 38. My teacher had me use red pencil, so the peripheral vision of the eye would catch pedal markings a bit sooner than the otherwise black-and white on the page.