Correctly adding operators to dag