Fixed the bug where the reset was not working b/c the hist state was compairing to undefined to undefined.