Output stream call fix