fix bugs with mt