Fixed stream writer issue.