Fix "up-to-date" logic.