Fix bug for logged out users