outputStream fixed