fixed a bug where edges where not updated after mergePatch