fix hmp error