fix temp and mode reset