Correct bracketing around temperature test