timer example fix