fix comp of polynomials