fixes #2250 New expand feature creates only valid edges.