Fix a bug when reading negative temperatures.