Fix parser to ignore subtrees