Quick fix for #24 : added leave_group fixed wrong iterator