fix cannot http redirect bug