fix: remove feature edges for invalid segments