Fixed a bug with computing the Teichmuller polynomial.