Fix of check amount of thermal devices