Fix Core.TH for TH < 2.8