Remove warning in capture_io
Merge pull request #1104 from mururu/remove-warning

Remove warning in capture_io