Fix logic error
Merge pull request #1937 from wmtan/FixForSetTransientProducts

ROOT6 -- Fix logic error