fix hm script