fixed the hgf parser