Fix for startsWith for root nodes
#trivial