[mms] Improved error handling when creating a new flag in dynamic view.
Fix variable name