fixed error in invite_group causing it not to work when logged out