fixed bug with plinomial base