fix typo and bug in generator of ex00/e2 and ex01/m2