BUG: Logic for re-running data sinks was incorrect

The logic for re-running data sinks was not correct.