bug fix that caused the old implementation of add_thermo to stop working