Fix a bug in md_ism_hfe.py