fix nil exception for geometry_type