fixed bug when reading more than one polyobject