Fix ostream opening.