Fixed open tags not persisting in tree