Fix the SD scheduler to avoid gluing the same node twice.