Fixed patch to work with --delete-delay.