Fix to bracket ordering in tree representation