Fixed bug: polygons are now calculated for all entities