fix limits of polynomials at infinity (#1061)