ostream bug