Fix undefined name "reset"
Merge branch 'mnaberez-fix-reset-undefined'