fix stderr redirect