Fixed stream issues.