Fix setTemp crash.