fixed temp count not resetting problem