fix for indent_tree recursion depth issue