fix retesselation bugs