output redirect fix