fix get_assigned_nodes

M