poly: fix a bug