Fix to the patch restoring --dry-run