fix bug in Reset() to reset c=0, thx @jasonmoo