fix invalid convex hull building