fixed a minor bug in error stream setting