fix polyroots with error=True