fix invalid name generation of the Mandatory modifier