bugfix: added ability to work with 0-polynomials