fix gaps,overlaps for invalid goemetry errors by skipping