fix coverages with self intersection
(cherry picked from commit e73ec7c0ee3ecf5dbca074444ec75844a3f48295)