Fixed a minor reset bug