Fixed bug in function myopt_AddGroup