fix bernstein_poly bug for degree=0