Fix bug when not using openid