Fix bug that the extruded surface is not of surfaces' type, fix duplication of points