fixed stupid error in remove_node()