Effects of thermal exchanges on the YBCO transition and the superconductivity recovery