fixed reset bug, comments