Fixed temperature function

How did this even work before?