Fixed a minnor reset bug