fixed a bug in the handling of -R with --delete