Fixed an issue with the tei tree populating funny.