fixed bug in leaving a group