Fix bug where dependency doesn't isn't checkpointed nor an end target.