Fix leaving a group not working.