Fixed bug in get_nodes()