Fix bugs: some nodes cannot be assigned to nodes