Fix addmh's bug