fix bugs in poly2numbers
fix bugs in numbers2poly