Bug fix in hmp feature building