Fixed stream output error