Fix the problem of redirect std::cout to