Changed the way of registration for MtHaml