fixed calculation of conditionalToTuple
Merge remote-tracking branch 'origin/defusecleanup' into defusecleanup