Fixed a bug in the polynomial settings.