Remove warning in capture_io

I'm sorry to bother you.