Fix #150 IO issue.