Fix for issue when no user was logged in.