Bugfix overlapping spans in UI editor.