fixed bad init in api_tree node