fix bug with union points on shape