Debugged problem that isMaxTemperatureError cannot return false after true