fix bug where the default temperature unit is wrong