Temperature alarm bugfixes