Fix edit_group method