fix bug on number of MT in debug mode