Fix bug when not logged in