fixed bug with temperature not saving