fix setTemperature issue