Corrected error appearing when logged-out