avoid useless redirect