fix bug where file cannot be re-trashed and is deleted permanently