bug fix and PolynomialSpace is not a package