location header redirect fix