fix getTemperature