BUG: Correcting thermal resistance in layers