Fixed list generation of tree

Signed-off-by: Joseph Lee <josephl@cecs.pdx.edu>