Fixed some bugs with temperature evolution.