Made log out work in the sp+idp2 example .