fixed stderr redirect