fix some bugs
Merge branch 'master' of https://github.com/shazichuanhuo/heat_final_version