bug fix when heattype=3