outputstream bug fix1