Leaf node fix

Fixed behavior of leaf syntax nodes.