fixed bug in managegroup see git closed issues for more details