Edge merging still behaving strangely, especially in grids it seems