fix cout del failed