fix adding of geometries