Fixing bug for logged out users.