minor bugfix

Unimportant bug in thermal()