Fix error for anonymous users.