fix bug with point geometries