fixed logging out for anonymous users