Fix errors on guest logout