Fixed removal of groups on logout.