fix mha, kha, ha conversion