Fix errors when logged out