Updated generated semantics. Fixed a wrong condition when setting mm_name.