fix TH package dependencies problem