Fix the polyobject crash