fixed thermometer bug