Fix issue when logged out