fixed bug in setMCtrlId