fix the geometry.