Fix getTree call