fixed stdout->stderr issue