fix typo in tree formatter