fixed polynomialregression bugs