Small change to fix temporary edges of merges not always being removed.