bug fix --delete option