fixed typo that caused problems with stderr handling