polynomial degree fix