Fixed some bugs in HFI_plot.pro