Fixed a variable name typo 

On line 10, the variable used was iMin_temp where as it should be iMax_temp