Geometry type was not getting set properly