fix cout bug