fix PAC bug for IE and better it