bugs fixed at PolyFunc