Fix a caret issue when two sibling nodes are side by side